﻿<?php
include("_gestionBase.inc.php"); 
include("_controlesEtGestionErreurs.inc.php");
$login = 'admin';
$motDePasse = 'admin';

if (isset($_POST['login']) && isset($_POST['mdp']))
{
	if ($_POST['login'] == $login && $_POST['mdp'] == $motDePasse)
	{
		$_SESSION['admin'] = TRUE;
		?>
		<SCRIPT LANGUAGE="JavaScript">
			document.location.href="/PPE4-vhb-sio-ppe-histostage/accueil.php" 
		</SCRIPT>
		<?php
	} 
	else
	{
		echo 'Erreur dans vos identifiants';
	}
}
else {
	?>
		<SCRIPT LANGUAGE="JavaScript">
			document.location.href="/PPE4-vhb-sio-ppe-histostage/accueil.php" 
		</SCRIPT>
		<?php
}
?>